import { ReptileController, CartonController } from "./controllers/controller";

var appSettings: IAppSettings = {
    isDebug: false,
    defaultController: "home",
    defaultAction: "index",
    controllers: [
        { controllerName: "reptile", controller: ReptileController },
        { controllerName: "carton", controller: CartonController }
    ],
    onErrorHandler: function (e: Object) {
        if (e.toString().indexOf('Controller not found:') !== -1) {
            // error 404
            console.log("Sorry! Controller not found");
        } else {
            console.log("Sorry! there has been an error please check out the console for more info!");
        }
    }
};
export { appSettings };